package top.mskrise.kn.mapper;

import top.mskrise.kn.entity.Bed;
import top.mskrise.kn.vo.BedVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BedMapper {

    List<BedVo> getBedsByRoomId(Long roomId);

    /**
     * 增加床位
     *
     * @param bed 床位对象
     */
    void addBed(Bed bed);

    Bed getBedById(Long id);

    void updateBed(Bed bed);

    void deleteBedById(Long id);
}

